import Vue from 'vue'
import Router from 'vue-router'

const IndexPages = () => import('../pages/index.vue')
const HelpCenterPages = () => import('../pages/helpCenter.vue')
const NewsPages = () => import('../pages/news.vue')
const LivePages = () => import('../pages/live.vue')
const DownloadCenter = () => import('../pages/downloadCenter.vue')
const UserCenter = () => import('../pages/userCenter.vue')
const RegisterCenter = () => import('../pages/registerCenter.vue')
const FindPwd = () => import('../pages/findPwd.vue')
const ForecastRecommend = () => import('../pages/ForecastRecommend.vue')
const LotteryLobby = () => import('../pages/LotteryLobby.vue')
const NewsList = () => import('../components/NewsList.vue')
const NewsDetails = () => import('../components/NewsDetails.vue')
const ChartsPage = () => import('../pages/chartsPage.vue')
const HelpMgsDetails = () => import('../components/HelpMgsDetails.vue')

//重庆时时彩
const ForecastPlan = () => import('../../src/components/cqssc/components/forecastPlan.vue')
const LLPageHis = () => import('../../src/components/cqssc/components/LLPageHis.vue')
const AnalyzeTable = () => import('../components/cqssc/components/AnalyzeTable.vue')
const AnalyzeNumber = () => import('../components/cqssc/components/AnalyzeNumber.vue')
// const AnalyzeNumber = () => import('../components/bj10/AnalyzeNumberBj.vue')
const AnalyzeColdHot = () => import('../components/cqssc/components/AnalyzeColdHot.vue')
// const AnalyzeColdHot = () => import('../components/bj10/AnalyzeColdHotBj.vue')
const AnalyzeOmit = () => import('../components/cqssc/components/AnalyzeOmit.vue')
const AnalyzeHengBan = () => import('../components/cqssc/components/AnalyzeHengBan.vue')
const CqsscCpdt = () => import('../components/cqssc/cpdt.vue')
const CqsscZstb = () => import('../components/cqssc/zstb.vue')
const CqsscYctj = () => import('../components/cqssc/yctj.vue')
const CqsscKjzb = () => import('../components/cqssc/kjzb.vue')
Vue.use(Router)


export default new Router({
  // mode: 'history',
  routes: [
    {
      path: '/',
      name:'首页',
      component: IndexPages
    },
    {
      path: '/helpCenter',
      name:'帮助中心',
      component: HelpCenterPages,
      children:[
        {          
          path:':helpID', 
          component: HelpMgsDetails
        }
      ]
    },
    {
      path: '/news',
      name:'新闻资讯',
      component: NewsPages,
      children:[
        {
          path:'', 
          component: NewsList
        },
        {
          path:':newsID', 
          component: NewsDetails
        }
      ]
    },
    {
      path: '/live/:caizhongID',
      name:'开奖直播',
      component: LivePages,
      children: [
        {
          path: '',
          component: CqsscKjzb,
        }
      ]
    },
    {
      path: '/downloadCenter',
      name:'软件下载',
      component: DownloadCenter
    },
    {
      path: '/userCenter/:userId',
      name: '用户中心',
      component: UserCenter
    },
    {
      path: '/registerCenter',
      name: '注册中心',
      component: RegisterCenter
    },
    {
      path: '/findPwd',
      name: '找回密码',
      component: FindPwd
    },
    {
      path: '/forecastrecommend/:caizhongID',
      name:'预测推荐',
      component: ForecastRecommend,
      children: [
        {
          path: '',
          component: CqsscYctj,
        }
      ]
    },
    {
      path: '/lotterylobby/:caizhongID',
      name: '彩票大厅', 
      component: LotteryLobby,
      children: [
        {
          path:'',
          component: CqsscCpdt,
          children:[
            {
              path: '',
              component: LLPageHis
            },
            {
              path: 'forecastplan',
              component: ForecastPlan
            },
            {
              path: 'analyze',
              name:'analyze',
              component: AnalyzeTable,
              children:[
                {
                  path:'hmtj',
                  component: AnalyzeNumber
                },
                {
                  path: 'lrfx', 
                  component: AnalyzeColdHot
                },
                {
                  path: 'ylfx', 
                  component: AnalyzeOmit
                },
                {
                  path: 'hbzs',
                  component: AnalyzeHengBan
                }
              ]
            }
          ]
        }
      ]
    },
    {
      path: '/charts/:caizhongID',
      name:'走势图表',
      component: ChartsPage,
      children:[
        {
          path: '',
          component: CqsscZstb,
        }
      ]
    },
  ]
})
